package com.zshan.clinic.admin.entity.vo;

import com.zshan.clinic.admin.constant.Constants;
import lombok.Data;

/**
 * 医生挂号配置常量表
 */
@Data
public class ClinicDoctorDictVo {

    /** 最大爽约次数;一周可以爽约几次 */
    private Integer maxNoShowCount;

    /** 最晚取号时间;截止到医生下班前半个小时可以取号 */
    private Integer latestRegistrationTime;

    /**
     * 最多提前几天可以预约
     */
    private Integer releaseAheadDay;


    /**
     * 获取默认的挂号常量
     * @return
     */
    public static ClinicDoctorDictVo createDefault(){
        ClinicDoctorDictVo clinicDoctorDictVo = new ClinicDoctorDictVo();
        clinicDoctorDictVo.setMaxNoShowCount(Constants.MAX_NO_SHOW_COUNT);
        clinicDoctorDictVo.setLatestRegistrationTime(Constants.LATEST_REGISTRATION_TIME);
        clinicDoctorDictVo.setReleaseAheadDay(Constants.RELEASE_AHEAD_DAY);
        return clinicDoctorDictVo;
    }
}
